import request from '@/router/axios';

export const checkOldSn = (params) => {
  return request({
    url: '/api/mes-product/product/check/replace/sequence/number',
    method: 'get',
    params
  });
};

export const getSNInfo = (params) => {
  return request({
    url: '/api/mes-product/product/query/replace/sequence/number',
    method: 'get',
    params
  });
};

export const checkNewSn = (data) => {
  return request({
    url: '/api/mes-product/product/check/replace/new/sequence/number',
    method: 'post',
    data: data
  });
};

export const replaceSn = (data) => {
  return request({
    url: '/api/mes-product/product/sequence/number/replace',
    method: 'post',
    data: data
  });
};
